What is the formula for magnesium chromate?

Magnesium chromate is an inorganic compound with the molecular formula MgCrO4. It is a yellow-colored solid that is insoluble in water. The compound is formed by the reaction of magnesium salts with chromate salts. It is commonly used as a corrosion inhibitor and in the metal finishing industry. The compound has a molar mass of 184.27 g/mol and a density of 3.12 g/cm³. Its melting point is 1050°C, and it decomposes at high temperatures. The chemical structure of magnesium chromate consists of one magnesium cation bound to two chromate anions through ionic bonds. The formula for magnesium chromate can also be written as Mg2CrO4 to show the presence of two magnesium ions.